#ifndef LED_H
#define LED_H

#include "Arduino.h"
#include <TimerListener.h>

class LED  : public TimerListener{
  public:
    LED(int LEDPort);  /* Contructor */
    /* Methodes */
    virtual void timerCallbackFunction(int eventId);
    void turnON();
    void turnOFF();
    void blink(int timeON, int nbOfCycles = -1);  
  
  private:
    /* Attributs */
    int m_LEDPort;
    boolean m_LEDState;
    int m_timeEventId;
};

#endif /* LED_H */
